//
//  YJMyViewCell.m
//  Sports-Go
//
//  Created by rimi on 16/10/6.
//  Copyright © 2016年 YRL. All rights reserved.
//

#import "YJMyViewCell.h"



@implementation YJMyViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addUI];
    }
    return self;
}

- (void)addUI {

    [self.contentView addSubview:self.headImage];
    [self.contentView addSubview:self.headTitleLabel];
}

- (void)layoutSubviews{

    [super layoutSubviews];
    
    self.headImage.frame = RzCGRectMake(20, 20, 30, 30);
    self.headTitleLabel.frame = RzCGRectMake(90, 10, 215, 50);
}
- (UIImageView *)headImage{

    if (!_headImage) {
        _headImage = [[UIImageView alloc] init];
        
    }
    return _headImage;
}


- (UILabel *)headTitleLabel{
    if (!_headTitleLabel) {
        _headTitleLabel = [[UILabel alloc] init];
        _headTitleLabel.textColor = [UIColor blackColor];
        
    }
    return _headTitleLabel;

}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


@end
